package com.mspbots.rule.exceptions.tsheet;


import com.mspbots.cw.request.SheetsTimeDTO;
import org.jeasy.rules.annotation.Fact;

/**
 * com.mspbots.rule.exceptions.tsheet.ITSheetBaseRule
 *
 * @author Jun Zhou
 * @date 12:39 2019/7/26
 **/
public interface ITSheetBaseRule {


    String FACT_TSHEET_TIMES = "tsheetTimes";

    String RULE_PARAM1 = "param1";

    String RULE_PARAM2 = "param2";

    String RULE_PARAM3 = "param3";

    /**
     * TODO
     *
     * @param entry
     * @return boolean
     * @author Jun Zhou
     * @date 14:05 2019/6/18
     **/
    boolean condition(@Fact(FACT_TSHEET_TIMES) SheetsTimeDTO entry);

    /**
     * TODO
     *
     * @param entry
     * @return void
     * @author Jun Zhou
     * @date 13:53 2019/6/18
     **/
    void action(@Fact(FACT_TSHEET_TIMES) SheetsTimeDTO entry);
}
